﻿using System.Collections.Generic;
using System.ComponentModel.Composition;

    public interface IFoo { }

    [Export(typeof(IFoo))]
    class Foo : IFoo
    { }

    class BarWithSingleFoo
    {
        [Import]
        public IFoo Foo { get; set; }
    }
